<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'center.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/style.css">
<script type="text/javascript" src="<%=basePath%>js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="<%=basePath%>My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
.l_lab {
	float: left;
	margin-top: 10px;
	margin-right: 5px;
	width: 420px;
	background-color: #BAD7E6;
}

.in_l_lab {
	font-size: 16px;
	width: 200px;
	height: 100px;
	text-align: center;
	float: inherit;
}

span {
	font-size: 14px;
}

.c_lab {
	width: 100px;
}

li {
	list-style: none;
	padding-top: 10px;
}
</style>
</head>
<body>
	<s:iterator value="lablist" var="var">
		<div class="l_lab" id="l_lab">
			<fieldset>
				<legend style="font-size: 14px;">
					实验名字：
					<s:property value="#var.labName" />
				</legend>
				<ul>
					<li><span>实验室容量：</span><input class="c_lab" type="text"
						value="<s:property value="#var.labContain" />" readonly="readonly">
					</li>
					<li><span>是否可以预约：</span> 
						<s:property value="#var.reserve" />
					</li>
					<s:if test="#var.reserve==1">
						<a href="closeOrder.action?labid=<s:property value='#var.LId'/>">关闭预约</a>
					</s:if>
					<s:if test="#var.reserve==0">
					<a href="openOrder.action?labid=<s:property value='#var.LId'/>">开放预约</a>
					</s:if>
				</ul>
			</fieldset>
		</div>
	</s:iterator>
</body>
</html>
